| HPC_ARMEDIT_SWI (HPC &0105:&0000) | |||
| Call a RISC OS SWI by number | |||
| Data sent: | 0 | HPC service ID = &0105 | |
| +2 | reason code = &0000 | ||
| +4 | SWI number to call | ||
| +8 | value for R0 register on entry to the SWI | ||
| +12 | value for R1 register on entry to the SWI | ||
| +16 | value for R2 register on entry to the SWI | ||
| +20 | value for R3 register on entry to the SWI | ||
| +24 | value for R4 register on entry to the SWI | ||
| +28 | value for R5 register on entry to the SWI | ||
| +32 | value for R6 register on entry to the SWI | ||
| +36 | value for R7 register on entry to the SWI | ||
| +40 | value for R8 register on entry to the SWI | ||
| +44 | value for R9 register on entry to the SWI | ||
| +48 | |||
| Data returned: | 0 | return code | |
| If the return code is &0001 | |||
| +4 | RISC OS style error block returned by SWI | ||
| If the return code is &0000 | |||
| +260 | value of R0 register on exit from the SWI | ||
| +264 | value of R1 register on exit from the SWI | ||
| +268 | value of R2 register on exit from the SWI | ||
| +272 | value of R3 register on exit from the SWI | ||
| +276 | value of R4 register on exit from the SWI | ||
| +280 | value of R5 register on exit from the SWI | ||
| +284 | value of R6 register on exit from the SWI | ||
| +288 | value of R7 register on exit from the SWI | ||
| +292 | value of R8 register on exit from the SWI | ||
| +296 | value of R9 register on exit from the SWI | ||
| +300 | |||
| Use: |
Calls a specified RISC OS SWI by number. The SWI is always called with the X (error returning) bit set.
Note that the reply packet is always the same length, regardless of whether the SWI returned an error. | ||
| Related services: | HPC_ARMEDIT_READ, HPC_ARMEDIT_WRITE, HPC_ARMEDIT_ALLOC, HPC_ARMEDIT_FREE | ||
| [Contents] [Up] | Copyright © Alexander Thoukydides, 2001 |